<?php

namespace App\Http\Controllers\Home;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class IndexController extends Controller
{
    //默认页
    public function index(Request $request)
    {

        if(Auth::guard('admin')->check()){

            return view('home.index');
        }else{

            return redirect()->route('admin.login.show');
        }
    }

    public function welcome()
    {
        return view('home.welcome');

    }
}
